tools/libxl: move domain suspend code into libxl_dom_suspend.c
authorYang Hongyang <yanghy@cn.fujitsu.com>
Mon, 13 Jul 2015 02:24:30 +0000 (10:24 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 13:08:30 +0000 (14:08 +0100)
commitf1fe54e5bf3c056794803df0e692c17d923cb847
tree749e77f646e86981f808c68df96a8c643fe6ed43
parent73db059d35ed48d8ae5ba0d9d9323a15c3d47907
tools/libxl: move domain suspend code into libxl_dom_suspend.c

Move domain suspend code into a separate file libxl_dom_suspend.c.
Add an API libxl__domain_suspend() which wraps the static
function domain_suspend_callback_common() for internal use.
Export the existing API libxl__domain_suspend_callback() used by
libxc to suspend the guest during migration.

Note that the newly added file libxl_dom_suspend.c is used for
suspend/resume code.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
tools/libxl/Makefile
tools/libxl/libxl_dom.c
tools/libxl/libxl_dom_suspend.c [new file with mode: 0644]
tools/libxl/libxl_internal.h